<template>
  <div class="tab_item_container">
    <div class="tab_name" :style="{color:(activeItem?'#3F85FF':'')}">
      <div>{{ soleItem.title }} </div>
      <div v-show="soleItem.count>0" class="red_point">{{ soleItem.count }}</div>
    </div>
    <div v-if="activeItem" class="bottom_line" />
  </div>
</template>

<script>
export default {
  name: 'TabItem',
  props: {
    soleItem: {
      type: Object,
      default: () => {}
    },
    activeItem: {
      type: Boolean,
      default: () => false
    }
  },
  methods: {
    currentClick() {}
  }
}
</script>

<style lang="scss" scoped>
.tab_item_container {
    cursor: pointer;
     min-width: 100px;
    display: flex;
    flex-flow: column;
    align-items: center;
    height: 100%;
    justify-content: center;

    .bottom_line {
        margin-top: 2px;
        height: 2px;
        background: #3F85FF;
        width: 100%;

    }

    .tab_active {
        font-size: 18px;
        font-family: Source Han Sans CN;
        font-weight: bold;
        color: #3F85FF;

    }

    .tab_name {
        font-size: 16px;
        font-family: Source Han Sans CN;
        font-weight: bold;
        color: #323232;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .red_point {
        text-align: center;
        line-height: 15px;
        width: 15px;
        height: 15px;
        font-size: 10px;
        color: white;
        background: #F95D2D;
        border-radius: 50%;
        margin-left: 3px;
    }
}
</style>
